import http from '@/service/http'
import config from '../config'

const baseUrl = config.USER_ADMIN_URL

export const _postPageLabelByCondition = (params) => http.$POST(`${baseUrl}/label/pageLabelByCondition`, params)
export const _postAddLabel = (params) => http.$POST(`${baseUrl}/label/add`, params)
export const _update = (params) => http.$PUT(`${baseUrl}/label/update`, params)
export const _updateStatus = (id, status) => http.$PUT(`${baseUrl}/label/updateStatus/${id}/${status}`)
export const _deleteLabel = (id) => http.$DELETE(`${baseUrl}/label/remove/${id}`)
